package mob;

import main.World;
import mob.controllers.AngryJawsController;
import mob.controllers.ZombieController;

public class AngryJaws extends Mob{
	
	public AngryJaws(long x, long y, World world)
	{
		super(x, y, world);
		
		damage = 10;
		knockback = 7;
		speed = 7;
		
		width = 20;
		height = 20;
		
		control = new AngryJawsController(this);
	}
	
	@Override
	protected void updateVelocity() 
	{
		if(Math.abs(lvx) < 1) lvx = 0;
        lvx *= 0.9;
	}
	
	public void onDirection(double angle)
	{
		lvx += Math.cos(angle);
		lvy += Math.sin(angle);
	}
}
